#define _CRT_SECURE_NO_WARNINGS 1
#include <math.h>
#include <stdio.h>

int main() {
    float a = 0;
    float b = 0;
    float c = 0;
    while (~scanf("%f %f %f", &a, &b, &c))
    {
        if (a != 0)
        {
            float k = pow(b, 2) - 4.0 * a * c;
            float n = k;
            float x = -(sqrt(n = k < 0 ? -k : k)) / (2 * a);
            float s = (-b) / (2 * a);
            if (k == 0)
            {
                if (s == -0)
                    s = 0;
                printf("x1=x2=%.2f\n", s);
            }
            else if (k < 0)
            {
                if (x < 0)
                    x = -x;
                printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi\n", s, x, s, x);
            }
            else
            {
                float x1 = s - x;
                float x2 = s + x;
                if (x1 > x2)
                {
                    float x = x1;
                    x1 = x2;
                    x2 = x;
                }
                printf("x1=%.2f;x2=%.2f\n", x1, x2);
            }
        }
        else
        {
            printf("Not quadratic equation\n");
        }

    }
    return 0;
}